package net.zjitc.link;

public class Node<T> {
    T date; //原数据
    Node<T> next;//指向下一个节点的引用（地址）

    public Node(T date) {
        this.date = date;
    }

    public Node(T date, Node next) {
        this.date = date;
        this.next = next;
    }

    public T getDate() {
        return date;
    }

    public void setDate(T date) {
        this.date = date;
    }

    public Node<T> getNext() {
        return next;
    }

    public void setNext(Node<T> next) {
        this.next = next;
    }

}
